class ArchiveError(Exception):
    """Base class for exceptions."""

    def __init__(self, *args):
        super().__init__(*args)


class SignatureError(ArchiveError):
    pass


class FormatDeclarationError(ArchiveError):  # 格式声明错误
    pass


class VersionMismatchError(ArchiveError):
    pass
    # Program does not match format version


class FileError(ArchiveError):
    pass


class MissingFileContentError(ArchiveError):  # 文件内容缺失
    pass
